package club.caihappy.demo03;

import club.caihappy.demo02.UserService;
import club.caihappy.demo02.UserServiceImpl;

/**
 * Created by 百岁 on 2021/7/13
 **/
public class Client {
    public static void main(String[] args) {
        ProxyInvocationHandler pih = new ProxyInvocationHandler();
        pih.setTarget(new UserServiceImpl());
        UserService proxy = (UserService) pih.getProxy();
        proxy.delete();

    }
}

